<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ListStudent</title>
</head>
<script src="js/Jquery.js"></script>

<link rel="stylesheet" href="css/bootstrap.css">

<body>
<h1 align="center" >学生列表展示</h1>
<hr>
    请输入姓名：<input type="text" id="userName" name="userName">
    <input type="button" value="确定" id="submit" name="submit">
    <input type="button" value="分页" id="ByPage" name="submit">
    <input type="button" value="添加" id="addStduent" name="submit">
<hr>

<table id="students" class="table table-bordered table-striped" >
    <tr>
        <td>学号</td>
        <td>姓名</td>
        <td>班级</td>
        <td>性别</td>
        <td>系部</td>
        <td>电话</td>
        <td>宿舍号</td>
        <td>照片</td>
        <td>操作</td>
    </tr>
</table>
<br>
<script>
    // $(function (){
    //     alert($("#S").val()==null)
    //     $.ajax({
    //         url:"/ListStudent",
    //         type:"Post",
    //         data:{},
    //         success:function (data){
    //             var students=JSON.parse(data)
    //             for( s of students){
    //                 var tr="<tr>"
    //                 for(var i in s ){
    //                     if(i!="photopath"){
    //                         tr+="<td>"+s[i]+"</td>"
    //                     }else{
    //
    //                     }
    //                 }
    //                 tr+="<td><a href='#'>删除</a><a>&nbsp;</a><a href='#'>更新</a></td>"
    //                 tr+="</tr>"
    //                 console.log(tr)
    //                 $("#students tr:last").after(tr)
    //             }
    //         },
    //         error:function (){
    //             console.log("出现错误！")
    //         }
    //     })
    // })
</script>
<script src="js/listStudent.js"></script>

</body>
</html>